package com.wxy.demo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/4/19 14:49
 */
@Data
public class StudentDto {

    @NotBlank(message = "学生名称不能为空")
    private String name;

    @NotNull(message = "学生年龄不能为空")
    private Integer age;

    private TeacherDto teacher;
}
